package com.dcd.service;

import com.dcd.pojo.Program;
import com.dcd.service.impl.ProgramServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(name = "donchedi-provider9091", contextId = "program", fallback = ProgramServiceImpl.class)
public interface ProgramService {

    /**
     * 查询指定节目信息
     *
     * @param program_id
     * @return
     */
    @RequestMapping("/select_appoint_program_by_id")
    Program select_appoint_program_by_id(@RequestParam int program_id);
}
